import housePropertyMaintenanceService from "@/serive/housePropertyMaintenanceService";

export default {
    state: {
        maintenancePage:[]
    },
    getters: {
        getmaintenancePage(state){
            return[...state.getmaintenancePage]
        }
    },
    mutations: {
        setTest(state,data){
            console.log(data);
            state.maintenancePage=data
        }
    },
    actions: {//异步操作
        async maintenancePage({commit},{limit,page,hpName}){
            let result=await housePropertyMaintenanceService.maintenancePage(limit,page,hpName);
            commit("setTest",result.data)
            return result
        }
    },
   
    // strict: debug
  }